<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>

<!-- view层 ${} -->
<div id="app">
    <li v-for="(item, index) in items">{{item.message}}   --   {{index}}</li>
</div>

<!-- 导入Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            items: [
                {message: "Vue"},
                {message: 'Java'},
                {message: 'Linux'}
            ]
        }
    });
</script>
</body>
</html>